package com.liuxvru.project.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;

/**
 * 工单与工作项的关联表
 *
 * @TableName pro_ticket_work_relation
 */
@TableName(value = "pro_ticket_work_relation")
@Data
public class TicketWorkRelation implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    /**
     * 关联ID
     */
    @TableId(value = "relation_id", type = IdType.AUTO)
    private Long relationId;
    /**
     * 工单ID，关联到工单表的主键
     */
    @TableField(value = "ticket_id")
    private Long ticketId;
    /**
     * 工作项ID，关联到工作项表的主键
     */
    @TableField(value = "work_id")
    private Long workId;
    /**
     * 关联创建时间
     */
    @TableField(value = "created_at")
    private Date createdAt;
    /**
     * 关联更新时间
     */
    @TableField(value = "updated_at")
    private Date updatedAt;
}